import QtQuick 2.15
import QtQuick.Window 2.15

import an.qml.TransObj 1.0

Window {
    width: 640
    height: 480
    visible: true
    title: qsTr("Text Examples")

    TransObj {
        id: transobj
    }

    TextEdit {
            id: textEdit
            objectName: textEdit
            anchors.fill: parent
            text: "Hello, World!"
            wrapMode: TextEdit.Wrap
            font.pixelSize: 16

            onTextChanged: {
                           console.log(textEdit.text)
                           transobj.getFromQml(textEdit.text)
                       }
    }
}
